﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

using Castle.Core.Logging;

using InfoGenerateSystem.Core.Utils;
using InfoGenerateSystem.Persistence.IDao;
using InfoGenerateSystem.Service.Interfaces;

namespace InfoGenerateSystem.Service.Implements
{
    /// <summary>
    /// 根据存储过程取出导出Excel所需数据服务类
    /// 
    /// 创建人:     王昊
    /// 创建时间:   2009-05-04
    /// 
    /// </summary>
    public class GetDataForExcel : IGetDataForExcel
    {
        private IGenericDao _dao = ServiceHelper.GetService(typeof(IGenericDao)) as IGenericDao;
        private ILogger _log = ServiceHelper.GetService(typeof(ILogger)) as ILogger;

        public DataSet GetDataSetByProcedure(String procedureStatementID, Object statementParams)
        {
            return _dao.QueryForTable(procedureStatementID, statementParams);
        }
    }
}
